package com.zbkj.common.invoice;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户发票申请记录
 * </p>
 *
 * @author 
 * @since 2025-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pe_invoice_apply")
public class PeInvoiceApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单id
     */
    private Long userId;

    /**
     * 开票类型 0:普票 1:专票
     */
    private Integer invoiceType;

    /**
     * 抬头
     */
    private String headName;

    /**
     * 统一信用代码
     */
    private String creditCode;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 0:未申请过发票 1:已开发票 2:未开发票
     */
    private Integer invoiceFlag;

    /**
     * 添加时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 0:正常 1:已删除
     */
    private Integer deleteFlag;

    @ApiModelProperty("订单流水号")
    private String orderNo;

    @ApiModelProperty("应付金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("备注")
    private String remark;


}
